import type { OnlineUser } from '@/model/common/onlineuser';
import { post } from './request';

const login = (arg: { user: string; password: string }) => {
  return post<OnlineUser>('User/Login', arg);
};
const whoami = () => {
  return post<OnlineUser>('User/WhoAmI');
};

export { login, whoami };
